import { reqUserLogin } from '../api'
const state = {
  // 所有图片的数据
  userLogin: []
}
const mutations = {
  GETUSERLOGIN(state, userLogin) {
    state.userLogin = userLogin
  }
}
const actions = {
  // 获取所有图片的数据
  async getUserLogin({ commit }) {
    let result = await reqUserLogin();
    if (result.code == 200) {
      commit("GETUSERLOGIN", result.data.users)
    }
  }
}
const getters = {}
export default {
  state, mutations, actions, getters
}